package org.example.springcloud.controller;

import org.example.springcloud.service.PaymentFeignService;
import org.example.springcloud.vo.ResultVO;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("customer")
public class OrderFeignController {

    @Resource
    private PaymentFeignService paymentFeignService;

    @GetMapping("selectOne/{id}")
    public ResultVO<?> selectOne(@PathVariable("id") Long id) {
        return paymentFeignService.selectOne(id);
    }

//    @GetMapping("/feign/timeout")
//    public String getFeignTimeOut() {
//        return paymentFeignService.getFeignTimeOut();
//    }
}
